package com.neusoft.tijian.po;

import java.io.Serializable;

/**
 * 医生实体类
 * 与数据库tijian库的doctor表结构完全对应
 */
public class Doctor implements Serializable {
    // 数据库字段: docId (INT类型，主键)
    private Integer docId;

    // 数据库字段: docCode (VARCHAR(20)，医生编码)
    private String docCode;

    // 数据库字段: realName (VARCHAR(20)，真实姓名)
    private String realName;

    // 数据库字段: password (VARCHAR(20)，登录密码)
    private String password;

    // 数据库字段: sex (INT类型，性别，1:男, 0:女)
    private Integer sex;

    // 数据库字段: deptno (INT类型，科室编号)
    private Integer deptno;

    // 无参构造方法
    public Doctor() {
    }

    // 全参构造方法
    public Doctor(Integer docId, String docCode, String realName, String password, Integer sex, Integer deptno) {
        this.docId = docId;
        this.docCode = docCode;
        this.realName = realName;
        this.password = password;
        this.sex = sex;
        this.deptno = deptno;
    }

    // getter和setter方法
    public Integer getDocId() {
        return docId;
    }

    public void setDocId(Integer docId) {
        this.docId = docId;
    }

    public String getDocCode() {
        return docCode;
    }

    public void setDocCode(String docCode) {
        this.docCode = docCode;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getDeptno() {
        return deptno;
    }

    public void setDeptno(Integer deptno) {
        this.deptno = deptno;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "docId=" + docId +
                ", docCode='" + docCode + '\'' +
                ", realName='" + realName + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", deptno=" + deptno +
                '}';
    }
}
